package com.qd.flow.model.bill;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 历史任务
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("flow_his_task")
public class FlowHisTask extends Model<FlowHisTask> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "his_task_id", type = IdType.ASSIGN_ID)
    private String hisTaskId;
    /**
     * 业务ID
     */
    @TableField("bid")
    private String bid;
    /**
     * 审批时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 审批状态
     */
    @TableField("status")
    private Integer status;
    /**
     * 审批结果
     */
    @TableField("result")
    private String result;
    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;
    /**
     * 审批人姓名
     */
    @TableField("approval_name")
    private String approvalName;
    /**
     * 审批人所在单位名称
     */
    @TableField("approval_org_name")
    private String approvalOrgName;
    /**
     * 审批部门名称
     */
    @TableField("approval_depart_name")
    private String approvalDepartName;
    /**
     * 审批业务ID
     */
    @TableField("bill_id")
    private String billId;
    /**
     * 审批人ID
     */
    @TableField("approval")
    private String approval;
    /**
     * 审批人所在单位ID
     */
    @TableField("approval_org")
    private String approvalOrg;
    /**
     * 节点ID
     */
    @TableField("node_id")
    private String nodeId;
    /**
     * 流程ID
     */
    @TableField("process_id")
    private String processId;
    /**
     * 审批部门ID
     */
    @TableField("approval_depart")
    private String approvalDepart;
    /**
     * 操作类型
     */
    @TableField("operator_type")
    private String operatorType;

    public void freeData() {
        this.hisTaskId = null;
        this.bid = null;
        this.addTime = null;
        this.status = null;
        this.result = null;
        this.nodeName = null;
        this.approvalName = null;
        this.approvalOrgName = null;
        this.approvalDepartName = null;
        this.billId = null;
        this.approval = null;
        this.approvalOrg = null;
        this.nodeId = null;
        this.processId = null;
        this.approvalDepart = null;
        this.operatorType = null;
    }

}
